<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>注册企业信息审核</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta http-equiv="Expires" CONTENT="0">
    <meta http-equiv="Cache-Control" content="no-siteapp,no-transform,no-store, no-cache, must-revalidate">
    <meta http-equiv="Pragma" content="no-cache">
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" href="/static/css/font.css">
    <link rel="stylesheet" href="/static/css/weadmin.css">
    <script type="text/javascript" src="/lib/layui/layui.js" charset="utf-8"></script>
    <link rel="stylesheet" href="/static/css/buildUnit/common.css">
    <style>
        body {
            height: auto;
        }

        .content {
            padding: 20px;
        }

        .layui-container {
            padding-top: 20px;
            width: auto;;
        }

        /*单元格备注样式*/
        .layui-table td.tdBz {
            text-align: left;
            padding-left: 0;
            border-left: none;
            color: #aaa;
        }

        .padNone .layui-form-select .layui-input {
            padding-right: 0;
        }

        .hide {
            display: none;
        }
    </style>
</head>
<body>
<div class="layui-container">
    <form id="form" class="layui-form layui-form-pane" action="" lay-filter="form">
        <!--资质证书信息-->
        <div class="layui-collapse">
            <div class="layui-colla-item">
                <h2 class="layui-colla-title">企业注册信息</h2>
                <div class="layui-colla-content layui-show">
                    <table class="layui-table v-table">
                        <tbody>
                        <tr class="hide">
                            <td width="24%"></td>
                            <td width="13%"></td>
                            <td width="13%"></td>
                            <td width="24%"></td>
                            <td width="13%"></td>
                            <td width="13%"></td>
                        </tr>
                        <tr>
                            <td class="th8">单位类型</td>
                            <td colspan="2">
                                <select name="orgType" id="orgType" lay-filter="orgType" lay-verify="isEmpty" class="layui-disabled" disabled>
                                    <option value="">请选择</option>
                                </select>
                            </td>
                            <td class="th8">统一社会信用代码</td>
                            <td colspan="2">
                                <input type="text" id="creditCode" name="creditCode" class="layui-input layui-disabled" disabled>
                            </td>
                        </tr>
                        <tr>
                            <td class="th8">工商登记类型</td>
                            <td colspan="5">
                                <select name="orgRegistryType" id="orgRegistryType" class="layui-disabled" disabled>
                                    <option value="">请选择</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td class="th8">企业法人</td>
                            <td colspan="2">
                                <input type="text" id="comartiperson" name="comartiperson" class="layui-input layui-disabled" disabled>
                            </td>
                            <td class="th8">法人联系方式</td>
                            <td colspan="2">
                                <input type="text" name="comartiphone" class="layui-input layui-disabled" disabled>
                            </td>
                        </tr>
                        <tr>
                            <td class="th8">企业联系邮箱</td>
                            <td colspan="5">
                                <input type="text" id="orgLinkMailbox" name="orgLinkMailbox" class="layui-input layui-disabled" disabled>
                            </td>
                        </tr>
                        <tr>
                            <td class="th8">登录名称</td>
                            <td colspan="5">
                                <input type="text" id="userName" name="userName" class="layui-input layui-disabled" disabled>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <!--资质项信息-->
        <div class="layui-collapse">
            <div class="layui-colla-item">
                <h2 class="layui-colla-title">附件信息</h2>
                <div class="layui-colla-content layui-show">
                    <table class="layui-hide" id="dataList" lay-filter="dataList"></table>
                </div>
            </div>
        </div>
    </form>
</div>
<script src="../../../static/js/main.js"></script>
<script type="text/javascript">
    var $;
    layui.use(['jquery', 'element', 'form', 'configure', 'configureCom', 'bluebird','sessionFun'], function () {
        var element = layui.element;
        var form = layui.form;
        $ = layui.jquery;
        var configure = layui.configure;
        var configureCom = layui.configureCom;
        var sessionFun = layui.sessionFun;//存储session
        var matchDict = layui.matchDict;
        var listData = sessionFun.get(configure.SESSION_ENTERPRISE_LIST_DATA);//注册企业审核信息
        form.val('form', listData);
        //单位类型
        configureCom.selectDataFun(configure.COMPANY_TYPE_CODE, listData.orgType, '#orgType');
        //工商登记类型
        configureCom.selectDataFun(configure.ORG_REGIST_TYPE, listData.orgRegistryType, '#orgRegistryType');

        var cols = [[
            {type: 'number', title: '序号'},
            {
                field: 'gradeType', title: '附件名称', templet: function (d) {
                    var aptitudeIndustry = matchDict.name(d.aptitudeIndustry, configure.APTITUDE_INDUSTRY);//资质行(专)业
                    var aptitudeSpeciality = (d.aptitudeSpeciality ? ('(' + matchDict.name(d.aptitudeSpeciality, configure.APTITUDE_SPECIALITY) + ')') : '');//资质专业
                    var gradeType = matchDict.name(d.gradeType, configure.APTITUDE_SEQUENCE);//资质序列
                    return '<p>' + aptitudeIndustry + aptitudeSpeciality + gradeType + '</p>';
                }
            },
            {field: 'positionDate', title: '操作'}
        ]];
        configureCom.tableRender( {}, cols, 'dataList', 10, '400', 'toolbarOrg');

    });

</script>
</body>
</html>
